package com.freejy.ecommunity.web.dto.request;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;


public class ForgotReqDto {

    @NotBlank
    @Length(min = 6, max = 50)
    private String account;

    @Length(max = 32)
    private String password;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password.toLowerCase();
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
